class Feed::MoneyDailyDraw < Feed
  validates_presence_of :added_money
  validates_presence_of :user_id,
    :money
    
  def before_create
    self.version = 1
  end
  
  # to template
  def to_t
    ":user于:created_at_ago_in_words前:link_to_daily_draw了:added_money麦粒"
  end
end